Skip to content

ci: turn off Defender real-time scanning on the Windows runners - #795

Closed
dfa1 wants to merge 1 commit into
mainfrom
ci/windows-defender
Closed

dfa1 wants to merge 1 commit into
mainfrom
ci/windows-defender

Conversation

@dfa1

@dfa1 dfa1 commented Nov 30, 2026

Copy link
Copy Markdown
Owner

The Windows jobs now set the run's time: 302–317 s, against 111–245 s for the other jobs (#794's run). Summed, the test classes take 716 s on Windows against 352 s on Ubuntu. The worst ratios are in classes that write many small temp files (CascadeDepthGain 4.9×, AllNullColumnRoundTrip 3.6×, ZoneMapPruning 2.7×), the pattern Defender's real-time scanning produces. The hosted runner is discarded after the job, so this turns that scanning off as the first step. This PR's CI run measures the effect.

🤖 Generated with Claude Code

The Windows jobs set the run's time (302-317 s against 111-245 s
elsewhere): every test class ran about twice as long as on Ubuntu (716 s
against 352 s summed), worst in those writing many small temp files
(CascadeDepthGain 4.9x, AllNullColumnRoundTrip 3.6x). Defender scans
each of those files; the hosted runner is discarded after the job, so
its real-time scanning is turned off first.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@dfa1

dfa1 commented Nov 30, 2026

Copy link
Copy Markdown
Owner Author

Closing: no measurable gain. Windows jobs 297/299 s vs 302/317 s, summed test class time 701 s vs 716 s. Defender's real-time scanning isn't what makes Windows ~2x slower than Ubuntu.

@dfa1 dfa1 closed this Nov 30, 2026
@dfa1
dfa1 deleted the ci/windows-defender branch November 30, 2026 08:00
dfa1 added a commit that referenced this pull request Nov 30, 2026
Since unit test classes run concurrently (#794),
VortexHttpReaderTailFetchTest.defaultClient_followsRedirects could read
VortexHttpReader.defaultHttpClient while VortexHttpReaderOpenOverloadTest
held a mock there, and saw the mock's null redirect policy ("expected:
NORMAL but was: null", Ubuntu JDK 25 on #795). The swapping test is now
@isolated, as AGENTS.md says a class needing the JVM to itself is, and
so is CsvImporterHttpTest, which swaps CsvImporter.httpClient the same
way.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant